package com.huarui.payInvoiceItem.dao.impl;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.dao.impl.BaseDaoImpl;

import com.huarui.payInvoiceItem.dao.IPayInvoiceItemDao;

public class PayInvoiceItemDaoImpl extends BaseDaoImpl implements
		IPayInvoiceItemDao {

	@Override
	public List<Map> getPayInvoiceItemByConditions(Map map) {
		return this.getSqlMapClientTemplate().queryForList(namespace+".getPayInvoiceItemByConditions",map);
		
	}

	public void deleteByCondition(Map map){
		this.getSqlMapClientTemplate().delete(namespace+".deleteByCondition", map);
	}

	@Override
	public Integer getPayInvoiceItemCountByConditions(Map map) {
		return (Integer) this.getSqlMapClientTemplate().queryForObject(namespace+".getPayInvoiceItemCountByConditions",map);
	}

}
